package com.bruce.pattern.creational.prototype;

import lombok.extern.slf4j.Slf4j;

import java.text.MessageFormat;

/**
 * Created by bruce on 2018/11/3 15:02
 */
@Slf4j
public class MailUtil {

    public static void sendMail(Mail mail) {
        String content = MessageFormat.format("向{0}同学,邮件地址:{1},发送邮件成功,内容:{2}",
                mail.getName(), mail.getAddresss(), mail.getContent());
        log.info(content);
    }




}
